﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;

namespace AMS.UI.Menu
{
    /// <summary>
    /// 测试使用
    /// </summary>
    class U_BarMenu
    {
        Form mainForm;
        Bar mainMenu;
        IMainMenu mainMenuGenerator;

        public void Init()
        {
            mainMenuGenerator = new BarMainMenu();
            mainMenuGenerator.MainForm = mainForm;
            mainMenuGenerator.MenuControl = mainMenu;
            mainMenuGenerator.MenuFileName = @"..\etc\menu.xml";
            mainMenuGenerator.CreateMenu(true, "AAAA|BBBBB|CCC".Split('|'));
        }
    }
}
